#!/usr/bin/tclsh
#
# +-------------------------------------------------------------------------+
# | e-vigr: ekt's - Virtual Infrastructure GReen meteR                      |
# | Copyright (C) 2010 National Documentation Center/NHRF ekt.vigr@gmail.com|
# |                                                                         |
# | This program is free software; you can redistribute it and/or           |
# | modify it under the terms of the GNU General Public License             |
# | as published by the Free Software Foundation; either version 2          |
# | of the License, or (at your option) any later version.                  |
# |                                                                         |
# | This program is distributed in the hope that it will be useful,         |
# | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
# | GNU General Public License for more details.                            |
# +-------------------------------------------------------------------------+
# | This code is designed, written, and maintained by the EKT/NHRF.         |
# +-------------------------------------------------------------------------+
# | http://code.google.com/p/e-vigr/                                        |
# +-------------------------------------------------------------------------+
#
set TMP EPOWER
# set TMP ./XPOWER for XEN
file mkdir $TMP 
set chan [open $TMP/kwh_gained.txt w]
set chan_xen [open $TMP/kwh_gained.xen.txt w]
#kwh_gained.xen.txt for XEN
puts $chan "[clock second] 0.0"
puts $chan_xen "[clock second] 0.0"
close $chan
close $chan_xen
